import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';

import { AccountComponent } from './account.component';
import { SignInComponent } from './signin/signin.component'

const routes: Routes = [
  { path: 'account/signin', component: SignInComponent, data: {title:'登录'} },
  { path: '', redirectTo: '/account/signin', pathMatch:'full' }
]

@NgModule({
  imports: [
    RouterModule.forRoot(routes),
    FormsModule
  ],
  exports: [
    RouterModule
  ],
  declarations: [
    AccountComponent,
    SignInComponent
  ]
})
export class AccountModule {

}


